package com.kunlong.demo.domain;

import java.io.Serializable;

import com.kunlong.base.model.KunlongModel;
import org.mybatis.hbatis.core.type.JdbcType;
import org.mybatis.hbatis.core.annotation.*;
import org.mybatis.hbatis.core.*;
import java.lang.Integer;
import java.lang.String;
import org.mybatis.hbatis.orm.criteria.support.query.AbstractQueryParam;
import org.mybatis.hbatis.orm.criteria.support.query.SortOrders;
/**
 * CodeDatasource 
 * @author generator
 * @date 2022年04月23日
 */
@Table(CodeDatasource.EntityNode.class)
public class CodeDatasource extends KunlongModel implements Serializable {
	
	private static final long serialVersionUID = 1L;
	/**
	  * 
	  * nullable:true,length:10
	  */
	@Column(primaryKey = true,autoIncrement = true,comment = "")	
	private Integer dataSrcId;
	/**
	  * 
	  * nullable:true,length:128
	  */
	@Column(comment = "")	
	private String name;
	/**
	  * 
	  * nullable:true,length:255
	  */
	@Column(comment = "")	
	private String host;
	/**
	  * 
	  * nullable:true,length:24
	  */
	@Column(comment = "")	
	private Integer port;
	/**
	  * 
	  * nullable:true,length:255
	  */
	@Column(comment = "")	
	private String dbName;
	/**
	  * 
	  * nullable:true,length:255
	  */
	@Column(comment = "")	
	private String user;
	/**
	  * 
	  * nullable:true,length:255
	  */
	@Column(comment = "")	
	private String password;
	/**
	  * 
	  * nullable:true,length:255
	  */
	@Column(comment = "")	
	private String url;
    public Integer getDataSrcId(){
    	return this.dataSrcId;
    }
    public void setDataSrcId(Integer dataSrcId){
    	this.dataSrcId = dataSrcId;
    }
    public String getName(){
    	return this.name;
    }
    public void setName(String name){
    	this.name = name;
    }
    public String getHost(){
    	return this.host;
    }
    public void setHost(String host){
    	this.host = host;
    }
    public Integer getPort(){
    	return this.port;
    }
    public void setPort(Integer port){
    	this.port = port;
    }
    public String getDbName(){
    	return this.dbName;
    }
    public void setDbName(String dbName){
    	this.dbName = dbName;
    }
    public String getUser(){
    	return this.user;
    }
    public void setUser(String user){
    	this.user = user;
    }
    public String getPassword(){
    	return this.password;
    }
    public void setPassword(String password){
    	this.password = password;
    }
    public String getUrl(){
    	return this.url;
    }
    public void setUrl(String url){
    	this.url = url;
    }

    public static class EntityNode extends AbstractEntityNode<CodeDatasource> {
        public static final EntityNode INSTANCE = new EntityNode("cd");;
    	/**  */
        public FieldNode<CodeDatasource, Integer> dataSrcId =  createFieldNode("dataSrcId","data_src_id",Integer.class,JdbcType.INTEGER);
    	/**  */
        public FieldNode<CodeDatasource, String> name =  createFieldNode("name","name",String.class,JdbcType.VARCHAR);
    	/**  */
        public FieldNode<CodeDatasource, String> host =  createFieldNode("host","host",String.class,JdbcType.VARCHAR);
    	/**  */
        public FieldNode<CodeDatasource, Integer> port =  createFieldNode("port","port",Integer.class,JdbcType.INTEGER);
    	/**  */
        public FieldNode<CodeDatasource, String> dbName =  createFieldNode("dbName","db_name",String.class,JdbcType.VARCHAR);
    	/**  */
        public FieldNode<CodeDatasource, String> user =  createFieldNode("user","user",String.class,JdbcType.VARCHAR);
    	/**  */
        public FieldNode<CodeDatasource, String> password =  createFieldNode("password","password",String.class,JdbcType.VARCHAR);
    	/**  */
        public FieldNode<CodeDatasource, String> url =  createFieldNode("url","url",String.class,JdbcType.VARCHAR);
	
        /**
         * @param alias 别名
         */
        public EntityNode(String alias) {
            super(CodeDatasource.class,"code_datasource",alias);
        }
    }
    
    //-- 实体参数(允许新增属性) 
	public static class QueryParam extends AbstractQueryParam<CodeDatasource> {
		public QueryParam() {
			this.setSortOrders(new SortOrders<CodeDatasource>(EntityNode.INSTANCE));
		}
	}
	
	public static enum ValueField {
	}
    // ==== 自定义属性 ====
}